import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { FlownodePageComponent } from './flownode-page/flownode-page.component';
import { WorkflowPageContainerComponent } from './workflow-page-container.component';

const routes: Routes = [
    {
        path: ':workflowId',
        component: WorkflowPageContainerComponent,
        children: [
            {
                path: ':flowNodeId',
                component: FlownodePageComponent
            }
        ]
    }
];

@NgModule({
    imports: [RouterModule.forChild(routes)],
    exports: [RouterModule]
})
export class WorkflowPageContainerRoutingModule { }
